package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description 商品信息
 */
public interface GoodsDao {


    String getMaxCode();

    List<Goods> selectGoodsPage(Integer pageNumber,Integer pageSize);

    List<Goods> selectGoodsPageByCondition(Integer page, Integer rows, String codeOrName, Integer goodsTypeId);

    List<Goods> selectGoodsPageByGoodsNameOrGoodsTypeId(Integer limit1, Integer limit2, String goodsName, Integer goodsTypeId);

    Integer insertGoods(Goods goods);

    Integer updateGoodsById(Goods goods);
}
